<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>40 实例</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script type="text/javascript" src="../assets/js/vue.js"></script>
    <script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
</head>

<body>
    <h1>40 实例 </h1>
    <a href="../index.html">返回</a>
    <hr />
    <div id="app">
        {{message}}
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: "#app",
            data: {
                message: "hello world"
            },
            methods: {
                add: function () {
                    console.log("xxx");
                }
            },
            mounted: function () {
                $("#app").html("我是jquery!");
            },
        });
        app.add;
        app.add();
        console.log(app);
    </script>
</body>

</html>